﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PhotoGallery.Abstract;
using PhotoGallery.Entities;
using System.Data.Linq;
using System.Web.Mvc;

namespace PhotoGallery.Concrete
{
    public class SqlFavoritsPhotoRepository : IFavoritsPhotoRepository
    {
        private Table<FavoritsPhoto> FavoritsPhotoTable;

        public SqlFavoritsPhotoRepository(string connectionString)
        {
            FavoritsPhotoTable = (new DataContext(connectionString)).GetTable<FavoritsPhoto>();
        }

        public IQueryable<FavoritsPhoto> FavoritsPhoto
        {
            get { return FavoritsPhotoTable; }
        }


    }
}
